<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('suggestions_and_evaluations', function (Blueprint $table) {
            $table->id();
            $table->string('uuid')->default('')->comment('唯一识别码');
            $table->string('customer')->default('')->comment('顾客名称');
            $table->tinyInteger('is_filled')->default(1)->comment('1未填写2已填写');
            $table->longText('content')->nullable()->comment('表单字段');
            $table->integer('customer_id')->default(0)->comment('客户id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('suggestions_and_evaluations');
    }
};
